#pragma once

class SpotLight:
	public ILightSourceObject
{
public:
	SpotLight(const NodeCreation& nc);
	virtual ~SpotLight();

	/*--------------------------------------------------------------------------*/
	void OnPreRender(const uint i, ERenderQuality::Type quality);
	/*--------------------------------------------------------------------------*/

	const glm::vec3& GetDirection() const;
	void SetDirection(const glm::vec3& dir);

	float GetAngleCos() const;
	void SetAngleCos(float angle);

private:
	glm::vec3 m_direction;
	float m_angleCos;

	void DrawLightVolume();
};

